<?php defined('SUROBOT') or exit('No direct script access allowed'); ?>
    <div class="bodys container">
        <div class="row">
            <div class="wrapper col-md-6 col-md-offset-3">
                <div class="rec-head">
                    <div class="text-center">
                        <span id="botName"><?php echo $config['robot_name'] ?></span>
                        <div class="pull-right">
							<div class="btn-group">
								<span class="setApi dropdown-toggle" data-toggle="dropdown">换接口<span class="caret"></span></span>
								<ul class="dropdown-menu" role="menu">
									<li<?php echo Fun::Equals(Fun::GetParam('server'), 'tuling') ? ' class="active"' : '' ?>><a href="./index.php?server=tuling"><span class="glyphicon glyphicon-leaf" aria-hidden="true"></span> 图灵(default)</a></li>
									<li<?php echo Fun::Equals(Fun::GetParam('server'), 'moli') ? ' class="active"' : '' ?>><a href="./index.php?server=moli"><span class="glyphicon glyphicon-leaf" aria-hidden="true"></span> 茉莉</a></li>
									<!-- <li class="divider"></li> -->
								</ul>
							</div>
						</div>
                    </div>
                </div>
                <div id="rec-body" class="rec-body">
                    <div class="bot-rep rep">你好呀，来自<?php echo $position ? $position : '火星' ?>的朋友！</div>
                </div>
                <div class="rec-foot">
                    <div class="reply text-center">
                        <form action="" onsubmit="return sendSpeech()">
                            <input class="form-controls" id="txt" type="text" autocomplete="off" required oninvalid="setCustomValidity('你还没有输入内容')" oninput="setCustomValidity('')" placeholder="欢迎来找 <?php echo $config['robot_name'] ?> 聊天">
                            <input id="send" type="submit" value="发送">
				        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>